package com.mycat.auth.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.mycat.auth.domain.Admin;


public interface AdminService {

    void addAdmin(Admin admin);

    void delAdmin(Integer[] ids);

    void updateAdmin(Admin admin);

    Admin findAdmin(Admin admin);

    Admin findAdminRole(Admin admin);

    /** 分页获取Admin列表
     * @param page Page<Role>
     * @return PageInfo<Role>
     */
    PageInfo<Admin> findAdmins(Page<Admin> page);

    /**
     * 用户添加角色
     * @param roleIds 角色集合
     * @param adminId 用户Id
     */
    void addAdminRole(Integer[] roleIds, Integer adminId);
}
